package com.dodoke.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dodoke.dto.RetailAreaDTO;
import com.dodoke.dto.RetailStoreDTO;
import com.dodoke.entity.RetailArea;
import com.dodoke.vo.RetailAreaListVO;
import com.dodoke.vo.RetailStoreListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 经销区域数据库操作接口
 */
@Mapper
public interface RetailAreaMapper extends BaseMapper<RetailArea> {

    /**
     * 分销区域管理分页查询
     *
     * @param page
     * @param retailAreaDTO
     * @return
     */
    Page<RetailAreaListVO> selectByList(Page<RetailAreaListVO> page, @Param("retailAreaDTO") RetailAreaDTO retailAreaDTO);

    /**
     * 插入分销区域信息
     * @param retailArea
     * @return
     */
    int insertRetailArea(RetailArea retailArea);
}
